package com.ha7419x;

import com.ha7419x.config.MyEnableAutoConfig;
import com.ha7419x.service.Test5;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@MyEnableAutoConfig
public class Study2Application {

    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(Study2Application.class);
        Test5 test5 = context.getBean(Test5.class);
        System.out.println(test5.getId());
    }

}
